import 'package:url_launcher/url_launcher.dart';

import 'toast.dart';

/// <summary>
/// todo: 操作URL
/// author：zwb
/// dateTime：2021/9/2 15:10
/// filePath：lib/utils/open_util.dart
/// desc:
/// <summary>
///
class OpenUrl {
  /// 打开app
  static schemes(String schemes) async {
    if (await canLaunch(schemes)) {
      await launch(schemes);
    } else{
      toast("请检查是否安装相关程序");
    }
  }
}
